package com.pengzy.comment.core.enums;

import lombok.Getter;

/**
 * @author xiaozhi 2023/7/10
 */

public enum ThreadKeyEnum {
    //线程池对象key集合
    THREAD_GLOBAL_KEY("thread-global-key"),
    //日志线程key
    LOG("log-global"),
    ;

    @Getter
    private String key;

    ThreadKeyEnum(String key){
        this.key=key;
    }

//    public static ThreadKeyEnum getObj(int code){
//        for (ThreadKeyEnum value : values()) {
//            if(value.getCode()==code){
//                return value;
//            }
//        }
//        return null;
//    }
}
